<%@ page import="auctionhausen.Listing" %>



<div class="fieldcontain ${hasErrors(bean: listingInstance, field: 'name', 'error')} required">
	<label for="name">
		<g:message code="listing.name.label" default="Name" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="name" maxlength="63" required="" value="${listingInstance?.name}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: listingInstance, field: 'endDate', 'error')} required">
	<label for="endDate">
		<g:message code="listing.endDate.label" default="End Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="endDate" precision="minute"  value="${listingInstance?.endDate}"  />
</div>

<div class="fieldcontain ${hasErrors(bean: listingInstance, field: 'startingPrice', 'error')} required">
	<label for="startingPrice">
		<g:message code="listing.startingPrice.label" default="Starting Price" />
		<span class="required-indicator">*</span>
	</label>
	<g:field type="number" name="startingPrice" min="0.0" required="" value="${fieldValue(bean: listingInstance, field: 'startingPrice')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: listingInstance, field: 'description', 'error')} ">
	<label for="description">
		<g:message code="listing.description.label" default="Description" />
		
	</label>
	<g:textArea name="description" cols="40" rows="5" maxlength="255" value="${listingInstance?.description}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: bidInstance, field: 'listing', 'error')} required">
	<g:hiddenField name="seller.id" id="listing" value="${session.user?.id}" />
</div>
